@import "./common.less";

body {
  min-width: 320px;
  margin: 0 auto;
  width: 15rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;

  @baseFont: 50;
  .search-content {
    display: flex;
    width: 15rem;
    height: (88rem / @baseFont);
    position: fixed;
    background-color: #ffc001;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    .classify {
      background-image: url(../img/分类.png);
      background-size: (44rem / @baseFont) (70rem / @baseFont);
      width: (44rem / @baseFont);
      height: (70rem / @baseFont);
      margin: (11rem / @baseFont) (25rem / @baseFont) (7rem / @baseFont)
        (24rem / @baseFont);
    }
    .search {
      flex: 1;
      input {
        height: (66rem / @baseFont);
        width: 100%;
        border-radius: (33rem / @baseFont);
        background-color: #fff2cc;
        margin-top: (12rem / @baseFont);
        outline: none;
        border: solid 1px #fff2cc;
        font-size: (25rem / @baseFont);
        padding-left: (55rem / @baseFont);
      }
    }
    .login {
      width: (75rem / @baseFont);
      height: (70rem / @baseFont);
      margin: (10rem / @baseFont);
      font-size: (25rem / @baseFont);
      text-align: center;
      line-height: (70rem / @baseFont);
      text-decoration: none;
    }
  }

  .banner {
    width: 15rem;
    height: (250rem / @baseFont);
    background-color: purple;
    background-image: url(../img/11.jpg.png);
    background-size: cover;
    margin: auto;
  }

  .ad {
    display: flex;
    width: 15rem;
    a {
      flex: 1;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }

  nav {
    width: 15rem;

    a {
      float: left;
      width: 3rem;
      height: (140rem / @baseFont);
      text-align: center;
      text-decoration: none;

      img {
        display: block;
        height: (82rem / @baseFont);
        width: (82rem / @baseFont);
        margin: (10rem / @baseFont) auto;
        margin-bottom: (-20rem / @baseFont);
      }

      span {
        font-size: (25rem / @baseFont);
        color: #333;
      }
    }
  }
}
